/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package it.unicam.fishpass.prism.parser;

import java.io.File;

/**
 *  it makes possible to execute the code of the project
 *  and show the result in the console takes as input the file INPUT.TXT
 *  and elaborates it to have the result required
 *  
 *  @author Andrea Baiocco
 */
public class EPDTA2PRISM {
	
	public static boolean parse(String path) {
		FishPassParser myparser = new FishPassParser();
		MDPGraph<String, MultiArc> graph = myparser.createMDP(path);
		if (graph != null) {
			String pathOutput = path.replace(".int", ".nm");
			myparser.saveMDP(graph, pathOutput);
			return true;
		}
		return false;
	}
}
